package com.bzg.test;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class BzgApplication {

	public static void main(String[] args) {

		// 创建一个Spring容器
		AnnotationConfigApplicationContext annotationConfigApplicationContext = new AnnotationConfigApplicationContext(AppConfig.class);
//		System.out.println();
//		annotationConfigApplicationContext.getBean("set");
		// 父子beanDefinition
//		ClassPathXmlApplicationContext classPathXmlApplicationContext = new ClassPathXmlApplicationContext("spring.xml");
//		Test userChild = (Test)classPathXmlApplicationContext.getBean(Test.class);
//		System.out.println(userChild.user1.getName());
//		System.out.println(userChild.name);


	}
}







